(function () {
    'use strict';

    angular
        .module('app.dashboard')
        .controller('DashboardController', DashboardController);

    DashboardController.$inject = ['$q', 'dataservice', 'logger', '$state', '$rootScope', '$stateParams'];
    /* @ngInject */
    function DashboardController($q, dataservice, logger,$state,$rootScope,$stateParams) {
        var vm = this;
        vm.TileClick = TileClick;
       
        activate();

        function TileClick(Category,Practice)
        {
            //alert('You Clicked ' + Category + ' -> ' + Practice);
            $state.go('PatientList', { Category: Category, Practice: Practice })
        }

        function activate() {
            vm.tabs = [
                {
                    title:'Referral-In',disabled:false
                },
                {
                    title: 'Referral-Out', disabled: false
                }
            ];


            vm.tabs1 = [
               {
                   title: 'Daily', disabled: false
               },
               {
                   title: 'Weekly', disabled: false
               },
               {
                   title: 'Monthly', disabled: false
               }
            ];

            vm.graphs = [
                {
                    title:'Today'
                },
                {
                    title:'Yesterday'
                },
                {
                    title: 'Day Before'
                }
            ];
            vm.Outtiles = [
                {
                    title: 'Nephrology'
                    , icon: '../images/icons/png/kidneys.png'
                },
                {
                    title: 'Cardiology'
                    , icon: '../images/icons/png/heart.png'
                },
                {
                    title: 'Gastroentrology'
                    , icon: '../images/icons/png/stomach.png'
                },
                {
                    title: 'Neurology'
                    , icon: '../images/icons/png/brain.png'
                },
                {
                    title: 'Opthalmology'
                    , icon: '../images/icons/png/eye.png'
                },
                {
                    title: 'Primary Care'
                    , icon: '../images/icons/png/doctor.png'
                }
            ];

            vm.tiles = [
                {
                    title: 'Nephrology'
                    ,icon: '../images/icons/png/kidneys.png'
                },
                {
                    title: 'Cardiology'
                    , icon: '../images/icons/png/heart.png'
                },
                {
                    title: 'Gastroentrology'
                    , icon: '../images/icons/png/stomach.png'
                },
                {
                    title: 'Neurology'
                    , icon: '../images/icons/png/brain.png'
                },
                {
                    title: 'Opthalmology'
                    , icon: '../images/icons/png/eye.png'
                },
                {
                    title: 'Primary Care'
                    , icon: '../images/icons/png/doctor.png'
                },
                {
                    title: 'Nephrology'
                    , icon: '../images/icons/png/kidneys.png'
                },
                {
                    title: 'Cardiology'
                    , icon: '../images/icons/png/heart.png'
                },
                {
                    title: 'This is a very long name much longer much much longer'
                    , icon: '../images/icons/png/stomach.png'
                },
                {
                    title: 'Neurology'
                    , icon: '../images/icons/png/brain.png'
                },
                {
                    title: 'Opthalmology'
                    , icon: '../images/icons/png/eye.png'
                },
                {
                    title: 'Primary Care'
                    , icon: '../images/icons/png/doctor.png'
                },
                {
                    title: 'Gastroentrology'
                    , icon: '../images/icons/png/stomach.png'
                },
                {
                    title: 'Neurology'
                    , icon: '../images/icons/png/brain.png'
                },
                {
                    title: 'Opthalmology'
                    , icon: '../images/icons/png/eye.png'
                },
                {
                    title: 'Primary Care'
                    , icon: '../images/icons/png/doctor.png'
                },
                {
                    title: 'Nephrology'
                    , icon: '../images/icons/png/kidneys.png'
                },
                {
                    title: 'Cardiology'
                    , icon: '../images/icons/png/heart.png'
                },
                {
                    title: 'This is a very long name much longer much much longer'
                    , icon: '../images/icons/png/stomach.png'
                },
                {
                    title: 'Neurology'
                    , icon: '../images/icons/png/brain.png'
                },
                {
                    title: 'Opthalmology'
                    , icon: '../images/icons/png/eye.png'
                },
                {
                    title: 'Primary Care'
                    , icon: '../images/icons/png/doctor.png'
                }

            ];

        }

        

    }
})();
